package com.zxlspace.collection2;


public class FruitApp {

    public static void main(String[] args) {
        Fruit fruit = new Apple(); //多态
        test(new Apple());
        test1(new Apple());
    }

    public static void test(Fruit fruit) {  //形参使用多态

    }

    public static Fruit test1(Fruit fruit) { //返回类型使用多态
        return new Apple();
    }
}
